import request from '@/utils/request'

let url = '/system/check/';

// 查询公告列表
export function listCheck(query) {
  return request({
    url: url + 'list',
    method: 'get',
    params: query
  })
}

// 查询公告详细
export function getCheck(checkId) {
  return request({
    url: url + checkId,
    method: 'get'
  })
}

// 新增公告
export function addCheck(data) {
  return request({
    url: url,
    method: 'post',
    data: data
  })
}

// 修改公告
export function updateCheck(data) {
  return request({
    url: url,
    method: 'put',
    data: data
  })
}

// 删除公告
export function delCheck(checkId) {
  return request({
    url: url + checkId,
    method: 'delete'
  })
}
